Structural complexity theory